import Spring.demo.Article;
import Spring.demo.ArticleController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
    public static void main(String[] args) {
        // 1.先得到 Spring 上下文对象
        ApplicationContext context =
                new ClassPathXmlApplicationContext("spring-config.xml");

        ArticleController articleController = context.getBean(ArticleController.class);

        System.out.println(articleController.getArticle().toString());
        // ..
    }
}
